dynamically typed(动态类型的):指一种编程语言的类型系统特性——变量的类型在运行时决定,变量本身通常不固定绑定某一种类型;同一个变量在不同时间可以指向不同类型的值。常见于 Python、JavaScript、Ruby 等语言。(也常与 statically typed“静态类型的”对比。)
/daɪˈnæmɪkli taɪpt/
Python is dynamically typed, so you don’t need to declare variable types.
Python 是动态类型语言,所以你不必声明变量类型。
Because the language is dynamically typed, a function may accept different kinds of inputs, but type-related errors can appear only at runtime if you’re not careful.
由于这种语言是动态类型的,函数可能接受不同类型的输入,但如果不够谨慎,类型相关的错误可能只会在运行时才暴露出来。
dynamic 来自希腊语 dynamis(力量、动力),经由拉丁语和法语进入英语,含义与“变化、运行过程中的作用”相关;typed 来自 type(类型),在计算机语境中指数据类型。合起来 dynamically typed 字面意思就是“在动态(运行过程)中确定类型”。